projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d730e96
)
babl: improve icc number serialization
author
Øyvind Kolås
<pippin@gimp.org>
Mon, 18 Sep 2017 17:24:35 +0000
(19:24 +0200)
committer
Øyvind Kolås
<pippin@gimp.org>
Mon, 18 Sep 2017 17:24:35 +0000
(19:24 +0200)
babl/babl-icc.c
patch
|
blob
|
history
diff --git
a/babl/babl-icc.c
b/babl/babl-icc.c
index efe894b45e112c50b51b765146cbef912c78d640..b5e85fce98e412ebed9b4f379438a6f6e87c9c98 100644
(file)
--- a/
babl/babl-icc.c
+++ b/
babl/babl-icc.c
@@
-151,7
+151,7
@@
static s15f16_t d_to_s15f16 (double value)
{
s15f16_t ret;
ret.integer = floor (value);
- ret.fraction = fmod(value, 1.0) * 6553
5.999
;
+ ret.fraction = fmod(value, 1.0) * 6553
6.0
;
return ret;
}
@@
-159,7
+159,7
@@
static u8f8_t d_to_u8f8 (double value)
{
u8f8_t ret;
ret.integer = floor (value);
- ret.fraction = fmod(value, 1.0) * 25
5.999
;
+ ret.fraction = fmod(value, 1.0) * 25
6.0
;
return ret;
}